<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:p="http://primefaces.org/ui"
      xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
      xmlns:f="http://xmlns.jcp.org/jsf/core">
    <h:head>
        <title>#{eventController.newEvent.eventName}</title>
	<link rel="stylesheet" type="text/css" href="${request.contextPath}/resources/css/main.css" />
    </h:head>
    <h:body>
        <p:layout fullPage="true">
            <p:layoutUnit position="north" size="60" resizable="false" closable="false" collapsible="false">
		<ui:include src="/includes/header.xhtml"/>
            </p:layoutUnit>
	    <p:layoutUnit position="center" class="content">
		<table>
		    <tr>
			<td style="vertical-align: middle">
			    <h1>#{eventController.newEvent.eventName}</h1>
			</td>
			<td style="vertical-align: middle">
			    (#{eventController.newEvent.eventPublicPrivate ? 'public' : 'private'}
			    #{eventController.newEvent.eventIndoorOutdoor ? 'indoor' : 'outdoor'} event)
			</td>
		    </tr>
		</table>
		<h:form>
		    <h:outputText value="#{eventController.newEvent.eventDate}" title="#{bundle.ViewEventTitle_eventDate}">
			<f:convertDateTime pattern="MM/dd/yyyy" />
		    </h:outputText>
		    &nbsp;&nbsp;&nbsp;
		    <h:outputText value="#{eventController.newEvent.eventStartTime}" title="#{bundle.ViewEventTitle_eventStartTime}">
			<f:convertDateTime pattern="hh:mm a" />
		    </h:outputText>
		    - 
		    <h:outputText value="#{eventController.newEvent.eventEndTime}" title="#{bundle.ViewEventTitle_eventEndTime}">
			<f:convertDateTime pattern="hh:mm a" />
		    </h:outputText>
		    <br/>
		    <h:outputText value="#{eventController.newEvent.eventCity}" title="#{bundle.ViewEventTitle_eventCity}"/>
		    <br/>
                    <h:outputText value="#{eventController.newEvent.userEmail.userFirstName}" title="FirstName"/>&nbsp;
                    <h:outputText value="#{eventController.newEvent.userEmail.userLastName}" title="LastName"/>
		    <br/>
		    <a href="mailto:#{eventController.newEvent.userEmail.userEmail}">#{eventController.newEvent.userEmail.userEmail}</a>
		    <br/>
		    <br/>
		    <h2>Event Description</h2>
		    <br/>
		    <h:outputText value="#{eventController.newEvent.eventDesciption}" title="#{bundle.ViewEventTitle_eventDesciption}"/>
		    <br/>
		    <br/>
		    <h:outputText value="#{bundle.ViewEventLabel_eventNotification}"/>
		    <h:outputText value="#{eventController.newEvent.eventNotification}" title="#{bundle.ViewEventTitle_eventNotification}"/>
		    <br/>
		    <br/>

		</h:form>
	    </p:layoutUnit>
	    <p:layoutUnit position="south" size="80" resizable="false" closable="false" collapsible="false">
		<ui:include src="/includes/footer.xhtml"/>
	    </p:layoutUnit>
        </p:layout>
    </h:body>
</html>
